echo "================= fastdfs ================="
ps aux | grep fdfs_storaged | grep -v grep > /dev/null
    if [ $? -eq 0 ];then
        # sudo fdfs_storaged /etc/fdfs/storage.conf restart
        # if [ $? -eq 0 ];then
        #     echo "fdfs_storaged 重启成功！"
        # else
        #     echo "fdfs_storaged 重启失败。。。"
        # fi
        echo "fdfs_storaged 已启动"
    else
        sudo fdfs_storaged /etc/fdfs/storage.conf
        if [ $? -ne 0 ];then
            echo "storage start failed..."
        else
            echo "storage start success..."
        fi
    fi

ps aux | grep fdfs_trackerd | grep -v grep > /dev/null
    if [ $? -eq 0 ];then
        # sudo fdfs_trackerd /etc/fdfs/tracker.conf restart
        # if [ $? -eq 0 ];then
        #     echo "fdfs_trackerd 重启成功！"
        # else
        #     echo "fdfs_trackerd 重启失败。。。"
        # fi
        echo "fdfs_trackerd已启动"
    else
        sudo fdfs_trackerd /etc/fdfs/tracker.conf
        if [ $? -ne 0 ];then
            echo "tracker start failed ..."
        else
            echo "tracker start success..."
        fi
    fi
echo ""
echo "================= fastCGI ================="
./fcgi.sh
echo ""
echo "================= nginx ================="
./nginx.sh
echo ""
echo "================= redis ================="
./redis.sh
echo ""
echo "------------------------------------------------"
echo ""